﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="BuyBtn.ascx.cs" Inherits="Shop.Web.Controls.BuyBtn" %>
<input class="default-button ui-corner-all fright" type="button" value="Купить" onclick="Buy()"/>
<input type="hidden" id="<%= this.ClientID %>" value="<%= ProdId %>"/>
<script type="text/javascript">
function Buy()
 {
     pid = $('#<%= ClientID %>').val();
     add = $('#chbAddSize').get()[0].checked;
     $.post("AjaxHtmlContent.aspx?Content=Buy",
                   { pid: pid,
                     add: add
                   },
                   function(data) {
                       $("#drft").html(data);
                   }
                   );
  }
</script>